<!DOCTYPE html>
<html lang="zh-cn">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>用户列表</title>

	<!-- Bootstrap -->
	<link href="{:config('__public__')}/static/bootstrap-3.3.4/dist/css/bootstrap.min.css" rel="stylesheet">

	<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
	<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
	<!--[if lt IE 9]>
	<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
	<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->
	<link href="/Admin/css/iframeCommon.css" rel="stylesheet">
</head>
<body>
<style type="text/css">
	.form-group input,textarea,select{
		margin-bottom:15px; 
	}
	.alert{
		position: fixed;
		z-index: 100;
		margin-left: 20px; 
		width: 80%;
	}
	.alert-success{
		/*color: #fff;
		background-color: #5cb85c;
		border-color: #4cae4c;*/
	}
</style>

	<h2>网站设置</h2>
	<div class="contentTop">
		<div class="toolBar">
		  <div class="col-lg-3">
		  <a class="btn btn-info btn-sm" href="{:url('edit_config')}">新 增</a>
		  </div>
		  <div class="pull-right menuClass">
		     <a class=" label label-warning" href="{:url('list_show')}">&nbsp;&nbsp;列表型显示&nbsp;&nbsp;</a>
		  </div>
		</div>
	</div>

	<ul class="nav nav-tabs" role="tablist">
		{volist name="$Think.config.CONFIG_GROUP_LIST" id="group"}
		<li role="presentation" {eq name="id" value="$group.id"}class="active"{/eq}>
			<a href="{:url('?id='.$group['id'])}">{$group.name}配置</a>
		</li>
		{/volist}
	</ul>
	
	<div class="container">

		<form class="ajaxForm" action="{:url('save')}" method="POST">
			{volist name="list" id="config"}
			<div class="form-group">
				<label class="col-sm-12">
					{$config.title}
					<span class="check-tips">（{$config.remark}）</span>
				</label>
	
					{switch name="config.type"}
			{case value="0"}
				<div class="col-lg-6">
					<input type="text" class="form-control" name="config[{$config.name}]" value="{$config.value}">
				</div>
					{/case}
			{case value="1"}
				<div class="col-lg-6">
					<input type="text" class="form-control" name="config[{$config.name}]" value="{$config.value}">
				</div>
					{/case}
			{case value="2"}
					<div class="col-lg-6">
						<textarea class="form-control" rows="3" name="config[{$config.name}]">{$config.value}</textarea>
					</div>
					{/case}
			{case value="3"}
					<div class="col-lg-6">
						<textarea class="form-control" rows="3" name="config[{$config.name}]">{$config.value}</textarea>
					</div>
					{/case}
			{case value="4"}
					<div class="col-lg-3">
					<select class="form-control " name="config[{$config.name}]" >
						{volist name="\app\lib\makeHtml::parse_config_attr($config['extra'])" id="vo"}
						<option value="{$key}" {eq name="config.value" value="$key"}selected{/eq}>{$vo}</option>
						{/volist}
					</select>
					</div>
					{/case}
			{/switch}
			</div>
			{/volist}
			<div class="col-lg-12">
			<button type="submit" class="btn btn-success">确 定</button>
			<a class="btn btn-warning" onclick="javascript:history.back(-1);return false;">取 消</a>
			</div>
		</form>
	</div>
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<script src="{:config('__public__')}/static/form-3.51/jquery.form.js"></script>
<link rel="stylesheet" href="{:config('__public__')}/static/artDialog-6.0.4/css/ui-dialog.css">
<script src="{:config('__public__')}/static/artDialog-6.0.4/dist/dialog-min.js"></script>
<script src="{:config('__public__')}/Admin/js/ajaxSubmit.js"></script>
</body>
</html>